package fingerguessinggame;

public class Util {

    /**
     * 产生随机数函数
     *
     * @param min
     * @param max
     * @return
     */
    public static int random(int min, int max) {
        return (int) (Math.random() * (max - min + 1) + min);
    }

    public static void main(String[] args) {
        System.out.println(random(1, 3));
    }
}
